<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动态绑定 style 对象数组语法</title>
</head>
<body>
<div id="app">
    <h1 style="color: red; text-decoration: underline">Hello, World！</h1>
    <h1 v-bind:style="[isColorDecorated, isTextDecorated]">Hello, World！</h1>

</div>

<script type="module">

    import {createApp} from "../../../../../js/vue.esm-browser.js";

    const app = createApp({
        setup() {
            let isColorDecorated = {
                color: "red",
            }

            let isTextDecorated = {
                textDecoration: "underline",
            }
            return {
                isColorDecorated,
                isTextDecorated,
            }
        }
    })

    app.mount("#app")
</script>
</body>
</html>